<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        //Map解构，类似于对象，键值的集合
        let a = new Map()

        console.log(a.size);
        a.set('name', 'Ming')
        a.get('name')
        console.log(a.get('name'));
        a.delete('name')
        console.log(a);
        //for..of
        a.set('sex', 'man')
        a.set('name', 'tanming')
        a.set('age', 18)
        for (n of a) {
            console.log(n);
        }
    </script>
</body>

</html>